﻿using Caliburn.Micro;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.ObjectModel;
using System.ComponentModel.Composition;
using System.Linq;
using System.Windows;
using UI.Toolkit.Interfaces;
using UI.Toolkit.Modes;
using UI.Toolkit.Views;

namespace UI.Toolkit.ViewModels
{
    [Export(typeof(RootViewModel))]
    public class RootViewModel : Conductor<INavigationItem>.Collection.OneActive
    {
        public RootViewModel()
        {
            Items.AddRange(IoC.GetAll<INavigationItem>());
        }

        protected override void OnViewLoaded(object view)
        {
            ActivateItemAsync(Items.First());
            base.OnViewLoaded(view);
        }

        public void Navigation(INavigationItem item)
        { 
        
        }
    }
}
